package org.scirp.ijmis.service.personpaper.impl;

import java.util.List;

import org.scirp.ijmis.dao.personpaper.IResearchFieldOfOAPersonDAO;
import org.scirp.ijmis.po.personpaper.ResearchFieldOfOAPerson;
import org.scirp.ijmis.service.personpaper.IResearchFieldOfOAPersonService;

public class ResearchFieldOfOAPersonServiceImpl implements IResearchFieldOfOAPersonService {
	private IResearchFieldOfOAPersonDAO researchFieldOfOAPersonDAO;
	@Override
	public boolean deleteResearchFieldOfOAPerson(ResearchFieldOfOAPerson ResearchFieldOfOAPerson) {
		return researchFieldOfOAPersonDAO.deleteResearchFieldOfOAPerson(ResearchFieldOfOAPerson);
	}

	@Override
	public boolean deleteResearchFieldOfOAPersonByPersonId(Long PersonId) {
		return researchFieldOfOAPersonDAO.deleteResearchFieldOfOAPersonByPersonId(PersonId);
	}

	@Override
	public boolean saveResearchFieldOfOAPerson(ResearchFieldOfOAPerson ResearchFieldOfOAPerson) {
		return researchFieldOfOAPersonDAO.saveResearchFieldOfOAPerson(ResearchFieldOfOAPerson);
	}

	@Override
	public List<ResearchFieldOfOAPerson> selectAll() {
		return researchFieldOfOAPersonDAO.selectAll();
	}

	@Override
	public ResearchFieldOfOAPerson selectById(long id) {
		return researchFieldOfOAPersonDAO.selectById(id);
	}

	@Override
	public List<ResearchFieldOfOAPerson> selectByPersonId(long PersonId) {
		return researchFieldOfOAPersonDAO.selectByPersonId(PersonId);
	}

	@Override
	public boolean updateResearchFieldOfOAPerson(ResearchFieldOfOAPerson ResearchFieldOfOAPerson) {
		return researchFieldOfOAPersonDAO.updateResearchFieldOfOAPerson(ResearchFieldOfOAPerson);
	}

	public IResearchFieldOfOAPersonDAO getResearchFieldOfOAPersonDAO() {
		return researchFieldOfOAPersonDAO;
	}

	public void setResearchFieldOfOAPersonDAO(IResearchFieldOfOAPersonDAO researchFieldOfOAPersonDAO) {
		this.researchFieldOfOAPersonDAO = researchFieldOfOAPersonDAO;
	}

}
